/* SVN FILE: $Id: controller.js 12 2008-06-22 17:17:22Z rafaelbandeira3 $ */
/**
* Application : The Javascript MVC Framework
*
* @package application.core
* @subpackage cookie
* @author 			$Author: rafaelbandeira3 $
* @copyright 		(c) Rafael Bandeira, Marcelo Condotta, Henrique Condotta. All Rights Reserved.
* @version 			$Revision: 12 $
* @lastrevision 	$Date: 2008-06-22 17:17:22 +0000 (Sun, 22 Jun 2008) $
* @modifiedby 		$LastChangedBy: rafaelbandeira3 $
* @lastmodified 	$LastChangedDate: 2008-06-22 17:17:22 +0000 (Sun, 22 Jun 2008) $
* @license 			The MIT License [http://www.opensource.org/licenses/mit-license.php]
* @filesource 		$URL: http://jsmvcapplication.googlecode.com/svn/trunk/application/src/controller.js $
*/
var Controller = new Class.create
({

	name:'Controller',
	components:$A(),
	view:null,
	__viewVars:$H(),
	initialize:function()
	{
	},
	setViewVar : function(key, value)
	{
		vars = {};
		if(arguments.length==2)
			vars[key] = value;
		else
			if (arguments.length==1)
			{
				if(typeof key != 'object')
					return null;
				else
					vars = key;
			}

		this.__viewVars.update(vars);
	}
	
});

